from likeshop_api_project.base.myBase import Tools


class goods_category_model(Tools):
    path = '/api/goods_category/lists'


    def goods_category_action(self, client, hd):
        goods_category_data = {
            "client":1
        }
        goods_category = self.huihua.get(url=self.hosturl + self.path, params=goods_category_data, headers=hd)
        return goods_category.json()


# from likeshop_api_project.api.login_api import login_model
# import requests
# s = requests.session()
# login = login_model(huihua=s)
# msg = login.login_action(account='17612345678', pwd='admin123', client='4')
# print(msg)
# getuserToken = msg['data']['token']
# hd = {"token": getuserToken}
# goods_category = goods_category_model(huihua=s)
# msg = goods_category.goods_category_action(client=1, hd=hd)
# print(msg)


